package com.wulis.provider.basic.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wulis.common.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 基础信息管理：部门信息表
 *
 * @author WuliBao
 * @date 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("basic_department")
@ApiModel(value = "Department对象", description = "基础信息管理：部门信息表")
public class Department extends BaseEntity<Department> {
    
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "组织机构ID")
    @TableField("organization_id")
    private Long organizationId;
    
    @ApiModelProperty(value = "父节点ID")
    @TableField("parent_id")
    private Long parentId;
    
    @ApiModelProperty(value = "所有父节点ID")
    @TableField("parent_ids")
    private String parentIds;
    
    @ApiModelProperty(value = "部门名称")
    @TableField("department_name")
    private String departmentName;
    
    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;
    
    @ApiModelProperty(value = "启用状态：0关闭 1启用")
    @TableField("enable")
    private Integer enable;
}
